package com.uk.ui.kontrata;

import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.ui.Tree;

public class KontrataNavigationTree extends Tree{

	public static final Object LIST = "Listo kontratat";
	public static final Object ADD = "Shto kontrate";
	public static final Object SEARCH = "Kerko kontrate";
	public static final Object LIST_DEBITOR = "Listo debitor";
	

	public KontrataNavigationTree(KontrataPanel kontrataPanel) {
		super();
		addItem(LIST);
		addItem(ADD);
		addItem(SEARCH);
		addItem(LIST_DEBITOR);
		
		setChildrenAllowed(LIST, false);
		setChildrenAllowed(ADD, false);
		setChildrenAllowed(SEARCH, false);
		setChildrenAllowed(LIST_DEBITOR, false);
		
		setSelectable(true);
		setNullSelectionAllowed(false);
		

		this.addListener((ItemClickListener)kontrataPanel);
	}
	
	
}
